package org.tc.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.tc.platform.entity.Profites;
import org.tc.platform.mapper.ProfitesMapper;
import org.tc.platform.service.ProfitesService;

import java.util.List;

@Service
public class ProfitesServiceImpl implements ProfitesService {
    @Autowired
    private ProfitesMapper profitesMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return profitesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Profites record) {
        return profitesMapper.insert(record);
    }

    @Override
    public Profites selectByPrimaryKey(Integer id) {
        return profitesMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Profites> selectAll() {
        return profitesMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Profites record) {
        return profitesMapper.updateByPrimaryKey(record);
    }
}
